#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <QtGui>
#include <QCheckBox>
#include "../../../ui_Frm_main.h"
#include "../xml/xmlScribe.h"
#include "../Builder/Builder.h"

class MainWindow : public QMainWindow, public Ui::MainWindow
{
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
	~MainWindow();
public slots:

private slots:
	void START_SearchPathUpdater();
	void START_SetUpdaterPath();
	void START_IgnorePath();
	void Set_Status_Msg(QString new_text, int time_showed = 5000);
	void DisableCBox_Old_List();
	void Enable_Old_List(int newstatus);
	void EnableCheckDoublon(int newstatus);
	void EnableMsgBox(int newstatus);
	void Liste_Show_Edit(bool newState);
	void Liste_Edit_Apply();
	void EnableControls(bool setval);
	void BrowseXML();
	void ReadXML();
	void LaunchGen();
	void ShowMsgError(QString msg);
	void ShowMsg(QString msg);
	void Showprogress(int value, int value_max);
	//void BrowseOutput();
private:
	void connectland();
	xmlScribe *Otis;
	Builder Generator;
	QString PATH_XMLList;
	QString PATH_Updater;
};
#endif
